package com.tianpengtech.admin.account;


import com.tianpengtech.common.model.account.Account;

public class AccountDao {

    public static AccountDao ME = new AccountDao();
    /*
        用户登录
        userName必须唯一
     */
    public Account queryAccountByUserName(String userName){
        String sql="select * from "+ Account.dao.tableName()+" where "+Account.USERNAME+"=? limit 1";
        return Account.dao.findFirst(sql,userName);
    }
}
